﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace LevelEditor.App.Serialization
{
    public class SWaypointCollection
    {
        private string name;
        [XmlElement("Name")]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private int idFinalBehavior;
        [XmlElement("IdFinalBehavior")]
        public int IdFinalBehavior
        {
            get { return idFinalBehavior; }
            set { idFinalBehavior = value; }
        }

        /*private SBehavior finalBehavior;
        [XmlElement("FinalBehavior")]
        public SBehavior FinalBehavior
        {
            get { return finalBehavior; }
            set { finalBehavior = value; }
        }*/

        private SDialog dialogEntity;
        [XmlElement("DialogEntity")]
        public SDialog DialogEntity
        {
            get { return dialogEntity; }
            set { dialogEntity = value; }
        }

        [XmlArray("Waypoints")]
        [XmlArrayItem("Waypoint")]
        public List<SWaypoint> listWaypoints;


    }
}
